<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Welcome, Please Login</title>

<!-- <link href="login-box.css" rel="stylesheet" type="text/css" /> -->
<link type="text/css" rel="stylesheet" href="./css/login-box.css" /> 
</head>

<body>

<div style="padding: 100px 0 0 400px;">
	
	<div id="login-box">
		<form action="j_spring_security_check" method="post">	
		<h2>Login</h2>
	
		
		<div id="login-box-name" style="margin-top:20px;">UserId:</div>
		
		<div id="login-box-field" style="margin-top:20px;">
			<input type="text" name="j_username" class="form-login" value="" size="30" maxlength="2048" />
		</div>
		
		<div id="login-box-name">Password:</div>
		
		<div id="login-box-field">
			<input type="password" name="j_password"  class="form-login"  value="" size="30" maxlength="2048" />
		</div>
	
		<button type="submit" value="&nbsp;" style="background-image: url(./images/login-btn.png); width: 103px; height: 42px;" ></button>	
		</form>
		<br />
		<c:if test="${not empty error}">
			<span class="login-box-options">				
				Your login attempt was not successful !
			</span><br>
			<span class="login-box-options">
				Caused: ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}				
			</span>
		</c:if>	
		<br />
		<br />		
	</div  >		
</div>
</body>
</html>
